from django.db import models
# 引用时间类型模块
from datetime import datetime


# Create your models here.

class xinwen(models.Model):
    title = models.CharField(max_length=100)
    author = models.CharField(max_length=10)
    content = models.CharField(max_length=1000)
    add_time = models.DateTimeField(default=datetime.now(), verbose_name=u"添加时间")
